package com.yongqi.duocai.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 夏亮辉
 * @since 2021-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_goods")
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    @ApiModelProperty(value = "酒精度")
    private Integer concentration;

    @ApiModelProperty(value = "净含量")
    private Integer content;

    @ApiModelProperty(value = "香型")
    private String odorType;

    @ApiModelProperty(value = "统一零售价")
    private BigDecimal unifyPrice;

    @ApiModelProperty(value = "团购价")
    private BigDecimal sellingPrice;

    @ApiModelProperty(value = "是否是套餐")
    private Boolean isGroup;

    @ApiModelProperty(value = "套餐描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;

}
